.dialog {
  display: flex;
  flex-direction: column;
  width: calc(100vw - 2rem);
  background: white;
  border-radius: $border-radius;
  border: 1px solid lighten($gray, 30%);
  box-shadow: 0 2px 4px 2px rgba($gray-darkest, 0.15);
}

.theme-dark {
  .dialog {
    box-shadow: 0 2px 4px 2px rgba(darken($gray, 45%), 0.5);
  }
}

.dialog-title-bar {
  display: flex;
  border-bottom: 1px solid lighten($gray, 30%);
}

.dialog-title-side {
  display: flex;
  flex: none;
  width: 6.5em;

  button {
    width: 100%;
    margin: 0 auto;
  }
}

.dialog-title-text {
  flex: 1 1 auto;
  margin: 15px 0;
  text-align: center;
  font-size: 1em;
}

.dialog-content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.dialog-tabs {
  border-bottom: 1px solid lighten($gray, 30%);

  ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  li {
    margin: 0 0.5em;
  }

  button {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    padding: 0.75em 0.75em;
    color: darken($gray, 10%);
    text-transform: capitalize;
    border-radius: 0;
  }

  .dialog-tab-active {
    color: $blue;
    border-bottom-color: $blue;
  }
}

.dialog-column {
  max-width: 374px;
  margin: 0 auto;
  padding: 36px 10px 50px;
}

.dialog-actions {
  margin: 1em 0 0;
  padding: 0;
  list-style: none;

  li + li {
    margin-top: 1em;
  }

  li:last-child {
    margin-top: 2.5em;
  }

  button {
    width: 100%;
  }
}
